package org.info.dto;

import java.util.List;

import lombok.Data;

import org.info.enums.JsgxMobileDataStateEnum;
import org.info.model.JsgxMobileData;

@Data
public class QueryExcution {

	private String typeId;
	
	private String saleAttr;
	
	private int state;
	
	private String stateInfo;
	
	private List<JsgxMobileData> list;

	public QueryExcution(String typeId, String saleAttr, JsgxMobileDataStateEnum stateEnum) {
		this(typeId, saleAttr, stateEnum, null);
	}
	
	public QueryExcution(String typeId, String saleAttr, JsgxMobileDataStateEnum stateEnum, List<JsgxMobileData> data) {
		this.typeId = typeId;
		this.saleAttr = saleAttr;
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.list = data;
	}

	public QueryExcution() {
	}
}
